Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gha): add reusable workflow "CodeQL" #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

derekbit
Copy link
Member

@derekbit derekbit commented Aug 4, 2024

Longhorn 7582

Signed-off-by: Derek Su <[email protected]>
@derekbit
Copy link
Member Author

derekbit commented Aug 6, 2024

cc @innobead

Copy link
Member

@innobead innobead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, LGTM. Just had one comment to answer first.

on:
workflow_call:
secrets:
CUSTOM_GITHUB_TOKEN:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if we need this for the workflow? We could add extra permissions in the job permission instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need it for the security-events: write. CUSTOM_GITHUB_TOKEN is passed from the caller workflow and will use default GITHUB_TOKEN.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you already customized that permission at https://github.com/longhorn/gh-configs/pull/2/files#diff-12783128521e452af0cfac94b99b8d250413c516ec71fe6d97dbea666ff7ba27R29. Do we still need the caller to provide a customized github token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants